package com.zhiteng.entity;

import java.util.Date;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.fasterxml.jackson.annotation.JsonInclude;

/**  
* <p>Title: LeaveBill.java</p>  
* <p>Description: 请假单实体</p>  
* @author dragon  
* @date 2018年11月30日  
* @version 1.0  
*/
@Table(name="tb_leavebill")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class LeaveBill {
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;
	private String teacher_id;	//	请假的教师id
	private String teacherName;	//	教师名称
	private String school_id;		//	所属学校id
	private String reason;	//	请假原因
	private Integer type;	//	请假的type永远是1
	@Transient
	private String startStr;	//	请假开始时间(字符串)
	@Transient
	private String endStr;	//	请假结束时间(字符串)
	private Date start;	//	请假开始时间
	private Date end;	//	请假结束时间
	private Double total_hour;	//	请假的小时数
	private Integer total_course;	//	请假的总课时
	private Integer status;	//	请假单状态：0.开始审批(审批中) 1.审批通过    2.审批不通过  3.消息推送申请人已确认     -1：已撤回（撤回删除tb_procins中记录，但不删除tb_leavebill中记录）
	private Integer revocable; // 是否可撤销，0-可撤销，1-不可撤销；默认值0，可撤销
	
	private Date createDate;	//	申请单创建时间
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	
	
	public String getTeacherName() {
		return teacherName;
	}
	public void setTeacherName(String teacherName) {
		this.teacherName = teacherName;
	}
	public Integer getRevocable() {
		return revocable;
	}
	public void setRevocable(Integer revocable) {
		this.revocable = revocable;
	}
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	
	public String getSchool_id() {
		return school_id;
	}
	public void setSchool_id(String school_id) {
		this.school_id = school_id;
	}
	public String getReason() {
		return reason;
	}
	public void setReason(String reason) {
		this.reason = reason;
	}
	public String getStartStr() {
		return startStr;
	}
	public void setStartStr(String startStr) {
		this.startStr = startStr;
	}
	public String getEndStr() {
		return endStr;
	}
	public void setEndStr(String endStr) {
		this.endStr = endStr;
	}
	public Integer getTotal_course() {
		return total_course;
	}
	public void setTotal_course(Integer total_course) {
		this.total_course = total_course;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	
	public Double getTotal_hour() {
		return total_hour;
	}
	public void setTotal_hour(Double total_hour) {
		this.total_hour = total_hour;
	}
	public Date getStart() {
		return start;
	}
	public void setStart(Date start) {
		this.start = start;
	}
	public Date getEnd() {
		return end;
	}
	public void setEnd(Date end) {
		this.end = end;
	}
	public String getTeacher_id() {
		return teacher_id;
	}
	public void setTeacher_id(String teacher_id) {
		this.teacher_id = teacher_id;
	}
}

